
// type为number输入框样式
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.el-input__inner{
  line-height: 1px !important;
}

// 左侧菜单样式
.aside-menu {
  transition: width 0.28s;
  width: 200px;
  height: 100%;
  background-color: var(--color-theme);
  font-size: 0px;
  z-index: 1001;
  //overflow: hidden;
  flex-shrink: 0;

  // reset element-ui css
  .horizontal-collapse-transition {
    transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
  }

  .scrollbar-wrapper {
    overflow-x: hidden !important;
  }

  .el-scrollbar {
    height: 100%;
  }

  a {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
  }

  .el-menu {
    border: none;
    height: 100%;
    width: 100% !important;
  }

  .menu-icon{
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-size: 100% 100% !important;
    // 菜单icon
    // &.m2{background: url("../images/m2.png") no-repeat;}
    // &.m3{background: url("../images/m3.png") no-repeat;}
    // &.m4{background: url("../images/m4.png") no-repeat;}
    // &.m5{background: url("../images/m5.png") no-repeat;}
  }

  // menu hover
  .submenu-title-noDropdown,
  .el-submenu__title {
    &:hover {
      background-color: var(--menu-bg-l) !important;
    }
  }

  .is-active>.el-submenu__title, .el-menu-item.is-active {
    color: var(--color-text-opticy) !important;
  }

  & .nest-menu .el-submenu>.el-submenu__title,
  & .el-submenu .el-menu-item {
    color: var(--color-text-opticy) !important;

    &:hover {
      background-color: var(--menu-bg-l) !important;
    }
  }

  & .el-menu-item{
    color: var(--color-text-opticy) !important;
  }

  .el-menu-item.is-active{
    background-color: var(--menu-bg-l) !important;
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: var(--menu-width) !important;
  }


// 折叠时的样式
  &.hideSidebar {
    width: 60px !important;
    .submenu-title-noDropdown {
      padding-left: 16px !important;
      position: relative;

      .el-tooltip {
        // text-align: center;
      }

      &>span>span {
        height: 0;
        width: 0;
        overflow: hidden;
        visibility: hidden;
        display: inline-block;
      }
    }

    // 折叠后的icon样式
    .el-menu--collapse .el-submenu {
      overflow: hidden;
      .el-submenu__title {
        .el-submenu__icon-arrow{
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }
}

.withoutAnimation {

  .main-container,
  .sidebar-container {
    transition: none;
  }
}

.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    color: var(--color-text-opticy);
    &:hover {
      // you can use @subMenuHover
      background-color: var(--menu-bg-l)!important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background-color: var(--menu-bg-l)!important;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background-color: var(--menu-bg-l)!important;
      border-radius: 20px;
    }
  }
}

// dialog样式
.com-dialog{
}

